<?php /* Smarty version 2.6.20, created on 2013-05-25 06:22:12
         compiled from _core/_include/module/_mvc/view/tablerows/tablerowproduct.tpl */ ?>
function TableRowProduct(tableRow, item, options) {
  this._tableRow = tableRow;
  this._item = item;
  this._options = options;
  
  this._createElements();
};

TableRowProduct.prototype._createElements = function() {
  var gui, td, unique = MiscUtils.unique();
  
  this._tableRow.style.backgroundColor = (this._tableRow.rowIndex % 2 != 0) ? '#fff' : '#faf9f4';
  
  td = this._tableRow.insertCell(-1);
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.borderLeft = 'solid 1px #694247';
  var checkbox = DOMUtils.createInput('', '', 'checkbox', '', null);
  checkbox.id = unique + '_product_checkbox';
  td.appendChild(checkbox);
  
  td = this._tableRow.insertCell(-1);
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.padding = '0 0 0 10px';
  td.style.height = '24px';
  td.align = 'left';
  td.id = unique + '_customer_td';
  
  td = this._tableRow.insertCell(-1);
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.height = '24px';
  td.align = 'left';
  td.style.padding = '0 0 0 10px';
  td.id = unique + '_order_td';
  
  td = this._tableRow.insertCell(-1);
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.height = '24px';
  td.align = 'left';
  td.style.padding = '0 0 0 10px';
  td.id = unique + '_name_td';
  
  td = this._tableRow.insertCell(-1);
  td.style.borderRight = 'solid 1px #694247';
  td.style.borderBottom = 'solid 1px #694247';
  td.style.height = '24px';
  td.align = 'left';
  td.style.padding = '0 0 0 10px';
  td.id = unique + '_quantity_td';
  
  gui = GuiTableRowProduct.instance(unique);
  new HandleTableRowProduct(gui, this._item, this._options);
};